//
//  YZMCurrentThingViewController.m
//  YZMicroStock
//
//  Created by apple on 16/11/7.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMCurrentThingViewController.h"
#import "YZMStockSellView.h"


@interface YZMCurrentThingViewController ()
@property (nonatomic, strong) YZMStockSellView *sellView;

@end

@implementation YZMCurrentThingViewController

- (id)init {
    if (self == [super init]) {
        self.view.backgroundColor = [YZMAppStyle appBackgroundColor];
        self.title = @"当前持仓";
        self.hidesBottomBarWhenPushed = YES;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.sellView = [[YZMStockSellView alloc] initWithFrame:self.view.frame style:UITableViewStylePlain andTradeType:YZM_TRADE_TYPE_FOR_A_STOCK_D];
    [self.view addSubview:_sellView];
    [self.sellView startTimer];
    // Do any additional setup after loading the view.
}

-(void)viewWillDisappear:(BOOL)animated
{
    [self.sellView stopTimer];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
